package com.imooc.mall.model.request;

import javax.validation.constraints.NotNull;
import java.util.Date;

public class CreateOrderReq {
    @NotNull
    private String receiverName;

    @NotNull
    private String receiverMobile;

    @NotNull
    private String receiverAddress;

    @NotNull
    private Integer orderStatus;

    private Integer postage = 0;

    private Integer paymentType = 1;

    private Date deliveryTime ;

    public String getReceiverName() {
        return receiverName;
    }

    public CreateOrderReq setReceiverName(String receiverName) {
        this.receiverName = receiverName;
        return this;
    }

    public String getReceiverMobile() {
        return receiverMobile;
    }

    public CreateOrderReq setReceiverMobile(String receiverMobile) {
        this.receiverMobile = receiverMobile;
        return this;
    }

    public String getReceiverAddress() {
        return receiverAddress;
    }

    public CreateOrderReq setReceiverAddress(String receiverAddress) {
        this.receiverAddress = receiverAddress;
        return this;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public CreateOrderReq setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
        return this;
    }

    public Integer getPostage() {
        return postage;
    }

    public CreateOrderReq setPostage(Integer postage) {
        this.postage = postage;
        return this;
    }

    public Integer getPaymentType() {
        return paymentType;
    }

    public CreateOrderReq setPaymentType(Integer paymentType) {
        this.paymentType = paymentType;
        return this;
    }

    public Date getDeliveryTime() {
        return deliveryTime;
    }

    public CreateOrderReq setDeliveryTime(Date deliveryTime) {
        this.deliveryTime = deliveryTime;
        return this;
    }
}